import request from '@/config/axios'

export interface supplierVO {
  id: string
  operator: string
  name: string
  remark: string
  operatingTime: Date
}

// 查询BOM主列表
export const getBOM = (data: PageParam) => {
  return request.post({ url: '/project/kis-bom/bomPage', data })
}

// 查询BOM子列表
export const getBOMDetail = (params) => {
  return request.get({ url: '/project/kis-bom/page?type='+ params })
}

// 导出
export const exportBOM = (params) => {
  return request.download({ url: '/project/kis-bom/exportTemplate', params })
}

// 删除
export const deleteBOM = (id) => {
  return request.delete({ url: '/project/kis-bom/delete?id=' + id })
}
